from django.urls import path
from . import views
from .djcontroller import ToobarViews as ToobarViews
urlpatterns = [
  path('', views.index, name="index"),  # 测试index代码
  path('image_code/', views.image_code, name="image_code"),  # 生成图片验证码
  path('init_menu_data/', views.init_menu_data, name="init_menu_data"),  # 初始化菜单数据
  path('get_menu_data/', views.get_menu_data, name="get_menu_data"),  # 获取初始化菜单数据
  path('send_sms_code/', views.send_sms_code, name="sms_code"),  # 生成短信验证码
  path('casedemo9login/', views.casedemo9login, name="casedemo9login"),  # 登录操作
  path('casedemo9register/', views.casedemo9_register, name="casedemo9_register"),  # 注册入口
  path('send_email_code/',views.send_email_code,name="send_email_code"),# 发送邮件验证码
  path('register_send_email_code/',views.register_send_email_code,name="register_send_email_code"),# 注册的时候发送邮件验证码
  path('updateuserinfo/', ToobarViews.updateUserInfo, name="updateUserInfo"),  # 获取用户信息
  path('getuserinfo/', ToobarViews.getUserInfo, name="getUserInfo"),  # 获取用户信息
  path('logout/', ToobarViews.logout_view, name="logout"),  # 退出登录
  path('chagnePwd/',ToobarViews.chagnePwd, name="chagnePwd"),  # 修改密码
]
